Skip to content

Conversation

DJm00n
Copy link
Contributor

@DJm00n DJm00n commented Jan 31, 2023

Summary

Fix InputLanguage.LayoutName Property example description. Looks like it was for this example:

public void MyCulture() {
// Gets the current input language.
InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage;
// Gets the culture for the language and prints it.
CultureInfo myCultureInfo = myCurrentLanguage.Culture;
textBox1.Text = myCultureInfo.EnglishName;
}

but actual InputLanguage.LayoutName example is different:

public void MyLayoutName() {
// Gets the current input language.
InputLanguage myCurrentLanguage = InputLanguage.CurrentInputLanguage;
if(myCurrentLanguage != null)
textBox1.Text = "Layout: " + myCurrentLanguage.LayoutName;
else
textBox1.Text = "There is no current language";
}

Fix example description.
@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-WinForms Issues or PRs that relate to WinForms. labels Jan 31, 2023
@learn-build-service-prod
Copy link

Learn Build status updates of commit d57ec9b:

✅ Validation status: passed

File Status Preview URL Details
xml/System.Windows.Forms/InputLanguage.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@merriemcgaw merriemcgaw requested a review from JeremyKuhne April 21, 2023 22:29
@DJm00n
Copy link
Contributor Author

DJm00n commented Jul 26, 2023

@JeremyKuhne can you please take a look?

@DJm00n
Copy link
Contributor Author

DJm00n commented Jun 15, 2024

@JeremyKuhne any updates?

@DJm00n DJm00n changed the title Update InputLanguage.xml Update description of InputLanguage.LayoutName Property example code Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-WinForms Issues or PRs that relate to WinForms. community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants